package bz.ziro.kanbe.controller.mng.page;

import java.util.logging.Logger;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import bz.ziro.kanbe.bean.PageTreeData;
import bz.ziro.kanbe.logic.PageTreeLogic;

/**
 * ページツリーの作成
 * @author Administrator
 */
public class TreeController extends Controller {

    @SuppressWarnings("unused")
    private static final Logger logger = Logger.getLogger(TreeController.class.getName());

    @Override
    public Navigation run() {

        String siteKeyBuf = (String)sessionScope("siteKey");
        //ページツリーのデータを作成
        PageTreeData data = PageTreeLogic.createTreeData(Long.valueOf(siteKeyBuf));
        requestScope("page",data);
        return forward("treeList.jsp");
    }
}
